const Controller = require('egg').Controller;

class GradeController extends Controller {
  async grade() {
    const { ctx, app } = this;
    const data = await ctx.service.grade.grade()
    ctx.body = data;
  }

  async addGrade() {
    const { ctx, app } = this;
    const data = await ctx.service.grade.addGrade()
    ctx.body = data;
  }
}

module.exports = GradeController;